package cn.zhoujing.security.demo.service;

import cn.zhoujing.security.demo.dto.LoginDTO;
import cn.zhoujing.security.demo.entity.User;
import cn.zhoujing.security.demo.vo.AccessToken;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author JingZhou
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-02-07 18:11:08
*/
public interface UserService extends IService<User> {

    /**
     * 登录
     * @param dto 用户信息
     * @return token信息
     */
    AccessToken login(LoginDTO dto);
}
